import request from '@/utils/request'

export function getKeyList(params) {
  return request({
    url: '/polestar/getSecurityLst',
    method: 'get',
    params
  })
}

export function creatKey(params) {
  return request({
    url: '/polestar/createSecurity',
    method: 'post',
    data: params
  })
}

export function delKey(key) {
  return request({
    url: '/polestar/removeSecurity',
    method: 'post',
    data: {
      key
    }
  })
}

export function decrypt(data) {
  return request({
    url: '/polestar/decrypt',
    method: 'post',
    data: {
      data
    }
  })
}

export function encry(data) {
  return request({
    url: '/polestar/encry',
    method: 'post',
    data: {
      data
    }
  })
}

